package com.dhcc.bpm.modules.orga.vo;

import com.dhcc.bpm.modules.orga.entity.AppApi;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;

/**
 * @ClassName AppApiVO
 * @Description 应用API关系表视图实体类
 * @Author daina
 * @Date 2020/2/24 19:25
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AppApiVO对象", description = "应用API关系表")
public class AppApiVO extends AppApi {
	private static final long serialVersionUID = 1L;
	/**
	 * 产品名称
	 */
	private String productName;
	/**
	 * 渠道
	 */
	private String appId;
	/**
	 * 是否更新启停状态
	 */
	private String statusFlag;
	/**
	 * 产品状态
	 */
	private String  productStatus;
	/**
	 * 接口名称
	 */
	private String apiName;
	/**
	 * 机构名称
	 */
	private String orgaName;
	/**
	 * 接口描述
	 */
	private String apiDescribe;
	/**
	 * 接口版本
	 */
	private String apiVersion;
	/**
	 * 接口编码
	 */
	private String apiCode;
	/**
	 * 接口编码
	 */
	private String apiScope;
	/**
	 * 开放等级
	 */
	private String privilegeLevel;
	/**
	 * 应用编码
	 */
	private String appCode;
	/**
	 * 应用名称
	 */
	private String appName;
	/**
	 *  响应次数
	 */
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Long num;
	/**
	 *  成功次数
	 */
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Long successNum;
	/**
	 *  成功率(返回百分比)
	 */
	private String successRate;
	/**
	 * 平均响应时间
	 */
	@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
	private Double responseTime;
	/**
	 * 平均响应时间
	 */
	private String apiLinkName;
}
